package com.smi.cn.satemachine;

import com.smi.cn.satemachine.ReturnVo.RmaStatus;
import com.smi.cn.satemachine.ReturnVo.RmaTrigger;
import org.springframework.context.ApplicationContext;
import org.squirrelframework.foundation.component.SquirrelSingletonProvider;
import org.squirrelframework.foundation.fsm.ConverterProvider;
import org.squirrelframework.foundation.fsm.ImmutableTransition;
import org.squirrelframework.foundation.fsm.UntypedStateMachine;
import org.squirrelframework.foundation.fsm.annotation.Transitions;
import org.squirrelframework.foundation.fsm.impl.AbstractUntypedStateMachine;

import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by zhangyanfei on 2017/7/26.
 *
 * @author zhangyanfei
 * @date 2017/07/26
 */
public class BaseReturnMachine extends AbstractUntypedStateMachine{
    static {
        ConverterProvider.INSTANCE.register(RmaStatus.class,new ReturnStatusConvertor());
        ConverterProvider.INSTANCE.register(RmaTrigger.class,new ReturnTriggerConvertor());
    }

    /**
     * 依赖的对象
     */
    public BaseReturnMachine(ApplicationContext applicationContext){
        /**
         * 使用applicationContext来创建依赖的bean
         */
    }
}
